#######################################################################
# 
# KindEditor 3.2 ǿ for DedeCMS V5.3.1 / V5.5 
# 
# ϣСԺ
# ʾַhttp://hezu.lanrentuku.com/kindeditor-demo/  
# Ͷת뱣Ϣ
# 
#######################################################################



KindEditor һСɵı༭ǿ󣬴࣬ٶȿ졣
༭ɫ䣬һСɵ߹䣬ڶ඼ʹãĸʽΪܵ
վճάУ½ŰΪҪҲĲʱ䣬ͨϱ༭༭ٷӣһŰ⣬ܸ༭ʡʱ䡣

༭dedecmsϣ޸dedecmsĳļ޸ĺ̨¼ģļ


Ҫܣ

1ԶŰ棬༭ڵԶŰ棬ԶͼƬԶУУɶƶǰǷո
2ͼƬŰ棬༭еͼƬԶУȥÿŵõķա
3תڱ༭ֱӽмתһݡ
4ԶŰ󣬴ֻǩ<p></p>ǩ<strong></strong><b></b>ᱻԶ滻<strong></strong>Զˣ֤˴ࡣ


˵

༭༭϶
KindEditor 3.2           ٷַhttp://www.kindsoft.net/
༭ɫ       ٷַhttp://www.eastit.cn/

1KindEditor༭ʹ֮ճʹϰߡ
2༭ɫ䡢KindEditordedeϵļ⡣
3ͼƬʹ<p></p><center></center>
4ԶŰɾУʹŰࡣ
5ͼƬŰ棬ͼƬоУԶֽдѾ༭õĶŰ档
6Ӳҳǩť
7ͼƬϴʹdedeԭϴ޸Ķɣлdede̳ coolcheng168  ̳ġȡfck߼ϸ̡̳


Ŀ¼˵
/docs     ˵ĵ
/examples ʾ
/php	  phpĿ¼KindEditorĿ¼Ϻûʹã
/plugins  Ŀ¼
/skins	  ƤĿ¼


ļ˵
demo-diy.html  ʾ˹ܰť֣ӼתԶŰȹܡ
index.css      ʽļ
kindeitor.js   KindEditor ļ
plus_format.js չļ


뱣Ŀ¼ļļϴɾ
/plugins  
/skins	  
demo-diy.html  
index.css      
kindeitor.js   
plus_format.js 



ʹ÷

1ļнѹcopy /include 
   jsļַΪ  /include/kindeditor-xmh/kindeditor.js
   
2򿪺̨ģ  /dede/templets/article_add.htm
   ´룺
   -----------------------------------------------------------------------
    <script type="text/javascript" src="../include/kindeditor-xmh/kindeditor.js"></script>
    <script type="text/javascript" src="../include/kindeditor-xmh/plus_format.js"></script>
    <script type="text/javascript">
      KE.show({
          id : 'body',
	      skinType: 'tinymce',
          resizeMode : 1,
          cssPath : './index.css',
			items : [
				'source', 'preview', 'fullscreen', 'undo', 'redo', 'cut', 'copy', 'paste',
				'plainpaste', 'wordpaste', 'title', 'fontname', 'fontsize','-',
				 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
				'superscript', 'date', 'time', 'specialchar', 'emoticons','textcolor', 'bgcolor','bold','italic', 'underline',  'strikethrough', '-',
				'selectall','removeformat','justifyleft', 'justifycenter', 'justifyright','justifyfull','link', 'unlink' ,  'image',
				'flash', 'media', 'layer', 'table', 'hr', 'about'
			]
      });
      function clearEditor(id) {
          KE.g[id].iframeDoc.open();
          KE.g[id].iframeDoc.write(KE.util.getFullHtml(id));
          KE.g[id].iframeDoc.close();
          KE.g[id].newTextarea.value = '';
      }
      function insertHtml(id, html) {
          KE.util.focus(id);
          KE.util.selection(id);
          KE.util.insertHtml(id, html);
      }
    </script>
   -----------------------------------------------------------------------   
   
   
   ҵ
   <?php
        GetEditor("body",$body,450);
      ?>
	
	滻ɣ
	<textarea id="body" name="body" style="width:100%;height:400px;visibility:hidden;"></textarea>
	<input type="button" id="buttonj2f" onClick="jian2fan('body')" value="->">
	<input type="button" name="formatbutton" value="ԶŰ" onClick="FormatText('body')"><input id="ifblank" name="ifblank" type="checkbox"><label for="ifblank" style='font-size:12px;'>ǰո?</label>
	<input type="button" name="formatbutton_img" value="ͼƬŰ" onClick="FormatImages('body')">
    <input type="button" name="button" value="ҳǩ" onclick="javascript:insertHtml('body', '#p##e#');" />


3 򿪺̨ģ  /dede/templets/article_edit.htm

	ҵ
	<?php GetEditor("body",$addRow['body'],450); ?>
	
	滻ɣ
	<textarea id="body" name="body" style="width:100%;height:400px;visibility:hidden;"><?php echo $addRow['body']; ?></textarea>
	<input type="button" id="buttonj2f" onClick="jian2fan('body')" value="->">
	<input type="button" name="formatbutton" value="ԶŰ" onClick="FormatText('body')"><input id="ifblank" name="ifblank" type="checkbox"><label for="ifblank" style='font-size:12px;'>ǰո?</label>
	<input type="button" name="formatbutton_img" value="ͼƬŰ" onClick="FormatImages('body')">
    <input type="button" name="button" value="ҳǩ" onclick="javascript:insertHtml('body', '#p##e#');" />

ˣ༭滻ɡ


д
ľǷdedecmsһcmsϵͳΪãΪùվάվطϰı༭Ժ󻹻FCK༭øʹá
ƽʱĹȽæ⣬뵽̳(http://bbs.lanrentuku.com)ǻᾡظÿһʣΪҽ⡣

ٴθлͼлdedeŶӣΪṩôվϵͳ





